package com.station.client.Distribution;


public class UniformDistribution  implements IDistribution      //равномерное распределение
{
    private  int a;
    private  int b;
    private  double rand;

    public  UniformDistribution(int a,int b)
    {
        this.a = a;
        this.b = b;
    }

    public double Next()
    {
        rand = Math.random();
        return  (a + rand * (b - a));
    }



}
